package kzpcase;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
import zl.Application;
import zl.bean.provinceDO;
import zl.common.Common;
import zl.service.provinceService;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = { Application.class })
@Transactional
public class DataSource {

	@Autowired
	provinceService ProvinceDao;


	@Test
	public void demo2(){
		provinceDO ProvinceDO = new provinceDO();
		ProvinceDO.setId(1L);
		ProvinceDO.setShardValue(Common.DB_1);
		//ProvinceDO = ProvinceDao.get(ProvinceDO);
	}
	
	@Test
	public void demo(){
		//provinceDO ProvinceDO = ProvinceDao.get(1L);
	}
}
